package com.integrationpath.mengine.webservice.impl;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;

import com.integrationpath.mengine.model.Article;
import com.integrationpath.mengine.model.Link;
import com.integrationpath.mengine.service.WebServicesManager;
import com.integrationpath.mengine.webservice.SoapWebServicesManager;

@WebService(endpointInterface = "com.integrationpath.mengine.service.WebServicesManager")
public class SoapWebServicesManagerImpl implements SoapWebServicesManager {

	WebServicesManager webServicesManager;
	
	public WebServicesManager getWebServicesManager() {
		return webServicesManager;
	}

	public void setWebServicesManager(WebServicesManager webServicesManager) {
		this.webServicesManager = webServicesManager;
	}
	
	@WebMethod
	public List getArticles() {
		return webServicesManager.getArticles();
	}
	
	@WebMethod
	public List<Link> getBlogs() {
		return webServicesManager.getBlogs();
	}
	
	@WebMethod
	public List<Link> getResources() {
		return webServicesManager.getResources();
	}
}
